#ifndef TRANSFORM_H
#define TRANSFORM_H

#include"Matrix.h"
#include"MyMath.h"


//matrix transform
class Transform {
public:
	Vec4f position;
	Vec4f rotation;
	Vec4f scale;
	Matrix objectToWorld;

	Transform() {
		objectToWorld.Identity();
	}

	Transform(Vec4f pos,Vec4f rot, Vec4f sca): position(pos),rotation(rot),scale(sca) {}

	Matrix Translate(const Vec4f& v);
	Matrix RotateX(float deg);
	Matrix RotateY(float deg);
	Matrix RotateZ(float deg);
	Matrix Rotate(const Vec4f& v);
	Matrix Scale(const Vec4f& v);

};




#endif // !TRANSFORM_H
